﻿<Window x:Class="WordSpider.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="600" Width="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <Grid Grid.Column="0">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>

            <!--功能区域按钮-->
            <StackPanel Grid.Row="0">
                <Button Name="downloadByBook" Content="有道下载" ToolTip="根据书籍中，关联的文件进行下载，下载的文件保存到数据库中" Click="downloadByBook_Click"/>
                <Button Name="downloadByBing" Content="Bing下载" ToolTip="从Bing下载例句的Json" Click="downloadByBing_Click"/>
                <Button Name="upgradeHtml" Content="分析HTML" ToolTip="从下载的html中，分析生成对应的xml文件" Click="upgradeHtml_Click"/>
                <Button Name="analyzeBingJson" Content="分析Bing例句" ToolTip="分析从Bing下载的例句Json，生成例句，保存到文件中" Click="analyzeBingJson_Click"/>
                <Button Name="checkXML" Content="检查XML" ToolTip="检查XML文件格式是否正确" Click="checkXML_Click" />

                <Button Name="generatePaidXML" Content="PaidXML" ToolTip="从数据库中，生成完全版的XML" Click="generateXML_Click"/>
                <Button Name="generateFreeXML" Content="FreeXML" ToolTip="从数据库中，生成免费版XML" Click="generateFreeXML_Click"/>
            </StackPanel>


            <!--测试区域按钮-->
            <StackPanel Grid.Row="1">
                <TextBox Name="wordTextBox" Text="hello"/>
                <Button Name="test" Content="test" Click="test_Click"/>
                <Button Name="getFromDB" Content="GetFromDB" Click="getFromDB_Click"/>
                <Button Name="addWord" Content="AddWord" Click="addWord_Click"/>
                <Button Name="addMultiWord" Content="AddMultiWord" Click="addMultiWord_Click"/>
                <Button Name="upgradeWord" Content="Upgrad" Click="upgradeWord_Click"/>
            </StackPanel>

        </Grid>



        <ScrollViewer Grid.Column="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
            <TextBox x:Name="messageTextBlock" TextWrapping="Wrap" Text="内容显示区域" FontSize="16"/>
        </ScrollViewer>
    </Grid>
</Window>
